package cn.caplike.demo.repository;

public class Temp {

    public static void main(String[] args) {
        new ParentClazz().say0("123");
        new ChildClazz().say0("321");

        new ParentClazz().say("123");
        new ChildClazz().say("321");
    }

    public static class ParentClazz {
        public void say0(CharSequence str) {
            System.out.println("parent: " + str);
        }

        public void say(String str) {
            System.out.println("parent: " + str);
        }
    }

    public static class ChildClazz extends ParentClazz {
        public void say0(String str) {
            System.out.println("child: " + str);
        }

        public void say(CharSequence str) {
            System.out.println("child: " + str);
        }
    }
}
